// import { ref, computed } from "vue"
import { defineStore } from "pinia"

export const useMenuesStore = defineStore("menues", () => {
  const isc = ref(false)
  const arr = ref<any[]>([])
  const leftWidth = ref("200px")
  const isfresh = ref(true)
  function change() {
    isc.value = !isc.value
    leftWidth.value = isc.value == true ? "60px" : "200px"
  }
  const changeFresh = () => {
    isfresh.value = false
    setTimeout(() => {
      isfresh.value = true
    }, 10)
  }
  return { isc, change, arr, leftWidth, changeFresh, isfresh }
})
